﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NETMovie.UI.WebMVC.Models.MovieModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit Movie Cast Members
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

  <% using (Html.BeginForm()) { %>
        
       
       <% Html.HiddenFor(m => m.MovieId); %>
        <div id="editorRows">
          <%
              for (int i = 0; i < Model.CastMembers.Count(); i++ )
              { %>

             
             
          <%= Html.EditorFor(m => m.CastMembers[i]) %>
        
    
            <%  }  %>
             </div>
     <input type="submit" value="Save CastMembers" />

<% } %>

</asp:Content>
